home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 3 / Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso / drivers / bld46.exe / INSTALL.BAT next >
DOS Batch File  |  1992-11-03  |  5KB  |  124 lines

  1. echo off
  2. cls
  3. if ()==(%1) goto NO_ARG
  4. if (net)==(%2) goto NET
  5. if (NET)==(%2) goto NET
  6. if not exist %1\SYSTEM\SETUP.INF goto BADDIR
  7. goto DO_IT
  8. :NET
  9. if not exist %1\WIN.COM goto BADDIR
  10. goto DO_IT
  11. :NO_ARG
  12. cls
  13. echo                     ┌─────────────────────────────────────┐
  14. echo                     │** MACH32 BETA Windows 3.1 Drivers **│
  15. echo                     └─────────────────────────────────────┘
  16. echo  
  17. echo                This  batch file needs to know where your Windows
  18. echo                directory is located in order to properly install
  19. echo                the drivers.
  20. echo  
  21. echo                    ┌┬────────────────────────────────────┬┐
  22. echo                    ││ Usage: INSTALL [Windows Directory] ││
  23. echo                    └┴────────────────────────────────────┴┘
  24. echo                          Example: INSTALL C:\WINDOWS
  25. goto DONE
  26. :BADDIR
  27. cls
  28. echo                     ┌─────────────────────────────────────┐
  29. echo                     │** MACH32 BETA Windows 3.1 Drivers **│
  30. echo                     └─────────────────────────────────────┘
  31. echo  
  32. echo                      ERROR: INVALID PATH "%1"
  33. echo  
  34. echo               The path you specified in either incorrect or does
  35. echo               not exist.  Please  check the path to your Windows
  36. echo               directory and try again.  If  you continue to have
  37. echo               difficulty,  please  call ATI Customer Support for
  38. echo               assistance.
  39. echo  
  40. echo                    ┌┬────────────────────────────────────┬┐
  41. echo                    ││ Usage: INSTALL [Windows Directory] ││
  42. echo                    └┴────────────────────────────────────┴┘
  43. echo                          Example: INSTALL C:\WINDOWS
  44. goto DONE
  45. :DO_IT
  46. cls
  47. echo                     ┌─────────────────────────────────────┐
  48. echo                     │** MACH32 BETA Windows 3.1 Drivers **│
  49. echo                     └─────────────────────────────────────┘
  50. echo  
  51. echo                    This batch file will conveniently extract
  52. echo                    the  MACH32 BETA  Windows 3.1 drivers  to
  53. if (NET)==(%2) goto NETW
  54. if (net)==(%2) goto NETW
  55. echo                    your Windows system directory.
  56. goto NEXT
  57. :NETW
  58. echo                    your Personal Network Windows Directory.
  59. :NEXT
  60. echo                   ┌─────────────────────────────────────────┐
  61. echo                   │ If you are prompted to overwrite a file │
  62. echo                   │             press Y  for YES            │
  63. echo                   └─────────────────────────────────────────┘
  64. echo  
  65. echo                   Press any key to continue the installation
  66. echo                             or CONTROL-C to abort.
  67. echo 
  68. pause >nul
  69. cls
  70. echo                     ┌─────────────────────────────────────┐
  71. echo                     │** MACH32 BETA Windows 3.1 Drivers **│
  72. echo                     └─────────────────────────────────────┘
  73. echo  
  74. echo Decompressing . . .
  75. if (NET)==(%2) goto NETWORK
  76. if (net)==(%2) goto NETWORK
  77. m32bta /e%1\SYSTEM
  78. if errorlevel == 0 goto OK
  79. goto ERROR
  80. :NETWORK
  81. m32bta /e%1
  82. if errorlevel == 0 goto OK
  83. goto ERROR
  84. :OK
  85. echo 
  86. pause
  87. cls
  88. echo                      ┌─────────────────────────────────────┐
  89. echo                      │** MACH32 BETA Windows 3.1 Drivers **│
  90. echo                      └─────────────────────────────────────┘
  91. echo                              ────────────────────
  92. echo                          ╒══════════════════════════╕
  93. echo                          │ Installation successful! │
  94. echo                          ╘══════════════════════════╛
  95. echo  
  96. echo           The first step of the Windows 3.1 drivers is now complete.
  97. echo           These  driver  replace the  currentling  installed MACH32
  98. echo           Windows drivers.
  99. goto DONE
  100. :ERROR
  101. cls
  102. echo                    ┌─────────────────────────────────────┐
  103. echo                    │** MACH32 BETA Windows 3.1 Drivers **│
  104. echo                    └─────────────────────────────────────┘
  105. echo                            ────────────────────
  106. echo                           ╒═════════════════════╕
  107. echo                           │ Installation Failed │
  108. echo                           ╘═════════════════════╛
  109. echo     
  110. echo     An error has been reported decompressing the Windows drivers.  This may
  111. echo     be due  to problems  accessing the  specified directory,  low free disk
  112. echo     space, or the archive is corrupt.  First, ensure the path you specified
  113. echo     is correct.  Second, run the DOS CHKDSK utility on your hard drive.  If
  114. echo     CHKDSK reports errors, correct the errors before continuing. Also, make
  115. echo     certain you have at least 3 Meg of free disk space available.
  116. echo     
  117. echo     If you  continue to  have  problems,  you  may  wish  to  try  manually
  118. echo     installing the drivers or  contact ATI Customer Support.  Manual driver
  119. echo     installation instructions are in README.1ST.
  120. :DONE
  121. echo  
  122. echo               ATI Customer Support (416) 756-0711 9am-5:30pm
  123. echo 
  124.